package patterns.actions.templateMethod.bank;

public abstract class Account {

	private String AccountNumer;

	Account() {

	}

	public Account(String number) {
		this.AccountNumer = number;
	}

	protected abstract String getAccountType();

	protected abstract double getInterestRate();

	public double cal(String accountType, String number) {
		return 9999.9999D;
	}

	public double calInt() {
		String act = this.getAccountType();
		double intr = this.getInterestRate();
		double amount = this.cal(act, AccountNumer);
		return amount * intr;
	}
}
